package com.kangyi.admin.mapper;

import com.kangyi.admin.annotation.AutoFill;
import com.kangyi.entity.InviterInfo;
import com.kangyi.enumeration.OperationType;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Blank
 * @version 1.0
 */
@Mapper

public interface InviterInfoMapper {
    @AutoFill(value = OperationType.INSERT)
    void addInviterInfo(InviterInfo inviterInfo);

    @AutoFill(value = OperationType.UPDATE)
    void editInviterInfo(InviterInfo inviterInfo);

    @Delete("delete from inviter_info where id = #{inviterId};")
    void deleteById(Integer inviterId);
}
